function GuiPageAcctExpense() {
};

GuiPageAcctExpense.instance = function(unique) {
  return { search: { cdateFrom: document.getElementById(unique + '_cdateFrom_text'),
                     cdateTo: document.getElementById(unique + '_cdateTo_text'),
                     pdateFrom: document.getElementById(unique + '_pdateFrom_text'),
                     pdateTo: document.getElementById(unique + '_pdateTo_text'),
                     payee: document.getElementById(unique + '_payee_select'),
                     particular: document.getElementById(unique + '_particular_select'),
                     amount: document.getElementById(unique + '_amount_text'),
                     method: document.getElementById(unique + '_method_select'),
                     chequeNo: document.getElementById(unique + '_chequeNo_text'),
                     note: document.getElementById(unique + '_note_text'),
                     ng: document.getElementById(unique + '_ng_checkbox'),
                     ne: document.getElementById(unique + '_ne_checkbox'),
                     paid: document.getElementById(unique + '_paid_checkbox'),
                     unpaid: document.getElementById(unique + '_unpaid_checkbox'),
                     search: document.getElementById(unique + '_search_button')
                   }, 
           summarize: { expense:  document.getElementById(unique + '_expense_div'),
                        cash: document.getElementById(unique + '_cash_div'),
                        noncash: document.getElementById(unique + '_noncash_div')
                      },
           add: { createdDate: document.getElementById(unique + '_createdDate_div'),
                  paidDate: document.getElementById(unique + '_paidDate_text'),
                  payee: { who: document.getElementById(unique + '_who_select'),
                           add: document.getElementById(unique + '_add1_button')
                         },
                  particulars: { particular: document.getElementById(unique + '_particulars_select'),
                                 add: document.getElementById(unique + '_add2_button')
                               },
                  amount: document.getElementById(unique + '_amount1_text'),
                  c: document.getElementById(unique + '_c_input'),
                  b: document.getElementById(unique + '_b_input'),
                  q: document.getElementById(unique + '_q_input'),
                  qn: document.getElementById(unique + '_qn_text'),
                  ng: document.getElementById(unique + '_ng1_checkbox'),
                  ne: document.getElementById(unique + '_ne1_checkbox'),
                  note: document.getElementById(unique + '_note1_text'),
                  add: document.getElementById(unique + '_add_button')
                },
           mains: document.getElementById(unique + '_main_table'),
           pagination: document.getElementById(unique + '_pagination_div')
        };

};
